import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 二维码信息
 */
@Entity('qrcode_behave_log')
export class QrcodeBehaveLogEntity extends BaseEntity {

  // 销售ID
  @Column({ comment: '销售ID', default: 0 })
  salesId: number;

  // 渠道ID
  @Column({ comment: '渠道ID', default: 0 })
  channelId: number;

  // 达人名称
  @Column({ comment: '达人名称', default: '' }) 
  daren: string;

  // 用户ID
  @Column({ comment: '用户ID', default: 0 })
  userId: number;

  // 二维码ID
  @Column({ comment: '二维码ID', default: 0 })
  qrcodeId: number;

  // openid
  @Column({ comment: 'openid', default: '' })
  openid: string;

  // 打开路径
  @Column({ comment: '打开路径', default: '' })
  path: string;

  // 事件类型
  @Column({ comment: '事件类型', default: '' })
  eventType: string;
}
